<?php

spl_autoload_register(function ($className) {

	//var_dump($className."<br/>");

	$className = str_replace("\\", "/", $className). ".php";
	if (is_file($className)) {
		require $className;
	} else {
		echo "加载 $className 失败";
	}

});


?>